package edu.suda.LoopCodePlus.entity;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/***********
 * 题目
 * @author 树树皆秋色
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
@Builder
public class Problem {
    private Integer problemId; //id
    @NotNull(message = "题目名称不能为空")
    private String problemName; //名称
    private Integer difficultyLevel; //难度水平
    private String description;  //描述
    private String inputSample;  //输入样例
    private String outputSample;  //输出样例
    private String collection;   //所属题目集
    private String tag;   //题目标签
    private Integer status; //用来标识是公用的题目还是私有的题目
    private Integer userId; //题目所属用户
    private String testCase;
}
